	<!-- 头部开始 -->
	<div id="top">
		<div id="top-con2">
			<div class="top-left">
				<div class="top-left1">
					<if value="isset({$hd.session.username})">
						<span class="userinfo">hi,<a href="{|U:'Member/order'}" class="username">{$hd.session.username}</a> <a href="{|U:'Login/quit'}" class="quit">退出</a></span>
						<else />
						<span>美团一次 美一次</span>
						<span><a class="red" href="{|U:'Login/index'}">登陆</a></span>
						<span><a href="{|U:'Regist/index'}">注册</a></span>
						<!-- <span>|</span> -->
					</if>
				</div>
			</div>
			<div class="top-right" >
				<ul>
					<li class="top-right-li"><p class="top-right-p"><a href="{|U:'Member/order'}">我的订单</a></p></li>
					<li class="top-right-li have-son">
						<p class="top-right-p"><a class="top-right-menu" href="{|U:'Member/order'}">我的美团</a><i class="sj"></i><i class="shu"></i></p>
						
						<div class="top-right-son mymt-pos">
							<ul class="mymt">
								<li><a href="{|U:'Member/order'}">我的订单</a></li>
								<li><a href="{|U:'Member/collect'}">我的收藏</a></li>
								<li><a href="{|U:'Member/basicInfo'}">基本信息</a></li>
								<li><a href="{|U:'Member/userinfo'}">个人资料</a></li>
								<li><a href="{|U:'Member/address'}">收货地址</a></li>
							</ul>
						</div>
						
					</li>
					<li class="top-right-li have-son">
						<p class="top-right-p"><a class="top-right-menu" href="">最近浏览</a><i class="sj"></i><i class="shu"></i></p>
						
						<div class="top-right-son viewed-pos">
							<if value="is_null($hd.session.viewed)">
							<p class="wu">暂无浏览记录</p>
							<else>
							<ul class="viewed">
								<foreach from="$hd.session.viewed" key="$k" value="$v">
								<li>
									<div class="tu"><a href="{|U:'Article/index',array('gid'=>$v['gid'])}" target="_blank"><img src="__ROOT__/{$v.pic}" width="80" height="49" /></a></div>
									<div class="info">
										<p><a href="{|U:'Article/index',array('gid'=>$v['gid'])}" target="_blank">{$v.title}</a></p>
										<p class="p2"><span>￥{$v.group_price}</span><del>{$v.price}</del></p>
									</div>
								</li>
							</foreach>
							</ul>
							<p class="unset-viewed"><a  href="javascript:" class="del_viewed" style="color:#2bb8aa">清空最近浏览记录</a></p>
							</if>
						</div>
						</li>
						<!-- 商品购物车开始 -->
					<li class="top-right-li have-son">
						<p class="top-right-p gwche"><i class="che"></i><a class="top-right-menu" href="">购物车<span class="gwche-num">{$cart|count}</span>件</a><i class="sj"></i><i class="shu"></i></p>
					
						<div class="top-right-son gwche-pos" id="cart">
							<if value="is_null($cart)">
							<p class="wu">暂没有加入购物车的商品</p>
							<else>
							<ul class="viewed">
								<foreach from="$cart" value="$v">
								<li class="top_cartlist">
									<div class="tu"><a href="{|U:'Article/index',array('gid'=>$v['gid'])}"><img src="__ROOT__/{$v.pic}" width="80" height="49" /></a></div>
									<div class="info">
										<p><a href="{|U:'Article/index',array('gid'=>$v['gid'])}">{$v.title}</a></p>
										<p class="p2"><span>￥{$v.group_price}</span><a class="del top_del_cart" href="javascript:" gid="{$v.gid}">删除</a></p>
									</div>
								</li>
							</foreach>
							</ul>

							<p class="go-gwche"><a href="{|U:'Cart/cart1'}">查看我的购物车</a></p>
							</if>
						</div>
		
						</li>
						<!-- 商品购物车结束 -->
				<!-- 	<li class="top-right-li have-son">
				<p class="top-right-p"><a class="top-right-menu" href="">联系客服</a><i class="sj"></i><i class="shu"></i></p>
				<div class="top-right-son contact-pos">
						<ul class="mymt">
							<li><a href="">申请退款</a></li>
							<li><a href="">申请退换货</a></li>
							<li><a href="">常见问题</a></li>
						</ul>
					</div>
				</li> -->
				</ul>
			</div>
			<div class="clear"></div>
		</div>
	</div>
<!-- 头部结束 -->
<!-- logo 和 搜索开始 -->
	<div id="logo-sch-bao2">
		<div class="logo-piece logo-piece-w240">
			<a href="__ROOT__" id="logo"></a>
			<span class="city">北京</span>
			<a class="choose-city" href="">切换城市</a>
		</div>
		<div class="sch-piece sch-piece-w">
			<div class="sch">
				<div class="form">
				<form name="sch_form" action="{|U:'Search/index'}" method="post">
					<div class="sch-left sch-left-w">
						<span class="sj"></span>
						<ul class="tuan-shang">
							<li>团购</li>
							<!-- <li>商家</li> -->
						</ul>
						<input class="search search-w" type="text" name="search" placeholder="请输入商品名称" />
					</div>
					<input class="btn" name="sch-btn" type="submit" value="搜 索" />
					</form>
				</div>
			</div>
			<div class="clear"></div>
			<!-- <div class="hot-words">
				<a href="">自助餐</a>
				<a href="">自助餐</a>
				<a href="">自助餐</a>
				<a href="">自助餐</a>
				<a href="">自助餐</a>
			</div> -->
		</div>
		<div class="bao"></div>
		<div class="clear"></div>
	</div>
<!-- logo 和 搜素结束 -->

<!-- 菜单部分开始 -->
<div id="menu">
	<div class="menu-l">
		<p class="cate-top">全部分类<i></i></p>
		<div class="cate-son-con">
			
			<foreach from="$allCate" key="$k" value="$v">
			<div class="cate-list">
				<div class="cate-left-con">
					<h3 class="top-cate"><a href="{|U('List/index',array('cid'=>$k))}">{$v.parent}</a></h3>
					<p class="son-cate">
						<?php 
							if($v['parent'] == '酒店' || $v['parent'] == '电影'){
								$son = array_slice($v['son'], 0,2,true); 
							}else{
								$son = array_slice($v['son'], 0,3,true); 
							}
						?>
						<foreach from="$son" key="$key" value="$value">
						<a href="{|U:'List/index',array('cid'=>$key)}">{$value}</a>
						</foreach>
					</p>
					<i class="right-arrow"></i>
				</div>
				<div class="cate-xian"></div>
				<div class="cate-right-con">
					<h3 class="right-top-cate"><a href="">{$v.parent}</a></h3>
					<p class="right-cate-son">
						<foreach from="$v['son']" key="$key" value="$v">
						<a href="{|U:'List/index',array('cid'=>$key)}">{$v}</a>
						</foreach>
					</p>
				</div>
			</div>
			</foreach>

		</div>
	</div>
	<div class="menu-r">
		<ul>
			<li><a href="__ROOT__">首页</a></li>
			<li><a href="{|U:'List/index',array('cid'=>1)}">美食</a></li>
			<li><a href="{|U:'List/index',array('cid'=>2)}">酒店</a></li>
			<li><a href="{|U:'List/index',array('cid'=>3)}">电影</a></li>
			<li><a href="{|U:'List/index',array('cid'=>4)}">休闲娱乐</a></li>
			<li><a href="{|U:'List/index',array('cid'=>5)}">旅游</a></li>
			<li><a href="{|U:'List/index',array('cid'=>6)}">生活服务</a></li>
			<li><a href="{|U:'List/index',array('cid'=>8)}">丽人</a></li>
		</ul>
	</div>
	<div class="clear"></div>
</div>
<!-- 菜单部分结束 -->